/*
 * @Author: 31735 3173569276@qq.com
 * @Date: 2024-04-27 14:23:24
 * @LastEditors: 31735 3173569276@qq.com
 * @LastEditTime: 2024-05-05 01:04:44
 * @FilePath: \web-app\src\api\warehouse.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import service from "../utils/request";

export function FindAllWarehouse() {
    return service({
        url: '/warehouse',
        method: 'get'
    })
}

export function SaveWarehouse(data) {
    return service({
        url: '/warehouse',
        method: 'post',
        data: data
    })
}

export function DeleteWarehouseById(id) {
    return service({
        url: '/warehouse?id=' + id,
        method: 'delete'
    })
}
